<?php
if($model->dealId != null)

	$this->breadcrumbs=array(
		'Deals'=>array('deal/admin'),
		$model->deal->referenceNo=>array('deal/view','id'=>$model->dealId),
		'Loans',
		'#'.$model->id=>array('view','id'=>$model->id),
		'Update',
	);

else
	
	$this->breadcrumbs=array(
		'Loans',
		'#'.$model->id=>array('view','id'=>$model->id),
		'Update',
	);


$this->menu=array(
	//array('label'=>'List Loan', 'url'=>array('index')),
	array('label'=>'Create Loan', 'url'=>array('create','dealId'=>$model->dealId)),
	array('label'=>'View Loan', 'url'=>array('view', 'id'=>$model->id)),
	//array('label'=>'Manage Loans', 'url'=>array('admin','customerId'=>$model->customerId)),
);
?>

<h1>Update Loan #<?php echo $model->id; ?> <?php if($model->dealId != null) echo 'of Deal '.$model->deal->referenceNo;?></h1>

<?php echo $this->renderPartial('_form', array('model'=>$model)); ?>